﻿using System;
using DAL;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace BLL
{
    public class StorageBLL
    {
        public DataTable Select(string TableName)
        {
            return new StorageDAL().Select(TableName);
        }
        public DataTable FY(string TableName, int YM)
        {
            return new StorageDAL().FY(TableName, YM);
        }
        public bool Add(StorageModel model)
        {
            return new StorageDAL().Add(model);
        }
        public bool Gai(StorageModel model, int id)
        {
            return new StorageDAL().Gai(model, id);
        }
        public StorageModel GetModelByID(string TableName, int id)
        {
            return new StorageDAL().GetModelByID(TableName, id);
        }
        public bool Del(string TableName, int id)
        {
            return new StorageDAL().Del(TableName, id);
        }
        public bool Sh(int a, int id)
        {
            return new StorageDAL().Sh(a, id);
        }
        public object SelectNo(string tableName, string mz)
        {
            return new StorageDAL().SelectNo(tableName, mz);
        }
    }
}
